﻿using UnityEngine;
using System.Collections;

public class PickUps : MonoBehaviour 
{
	public enum PickUpsList
	{
		Rifle,
		MachineGun,
		SniperRfile,
		SchockLauncher,
		HomingRifle
	};
	
	 public PickUpsList WeaponToSpawn = PickUpsList.Rifle;
	
	void OnTriggerEnter(Collider other)
	{
		if(other.CompareTag("Player"))
		{
			other.GetComponent<WeaponsScript>().currentWeapon = (int)WeaponToSpawn;
			
		}
	}
}
